wxFrame
Table of Contents

wxFrame is a class derived from wxWindow. You must use a wxFrame as your top level window.


The parameters for creating a wxFrame are: All items with a default value are optional, although you must supply both x and y, or both cx and cy if you supply either one. code ex: constant myFrame = create( wxFrame, {0, -- has no parent -1, -- wxWidgets will create an id "myFrame", -- will be dispayed as the caption -1, -- start at default x position -1, -- start at default y position 300, -- 300 wide 200}) -- 200 tall -- no style supplied means will be default style endcode If there is only one child of a frame, that child will be automatically resized (by wxWidgets) to the client rect of the frame.

  • proc raise_window( atom window )   
  • proc set_icon( atom frame, atom icon )   
  • proc show_fullscreen( atom frame, integer show, integer flags )   
  • proc show_window( atom window, integer show )     
     
    Parent Topics:
  • Classes
  • Controls
  • wxWindow  
     
    Subtopics:
  • wxCursor
  • wxMDIParentFrame
  • wxStatusBar

    wxFrame
    Table of Contents

    [proc]
    raise_window
    ( atom window )

    Category: wxFrame

    Bring a window to the front of the screen.

    See Also: set_icon, show_fullscreen, show_window


    wxFrame
    Table of Contents

    [proc]
    set_icon
    ( atom frame, atom icon )

    Category: wxFrame

    This sets the icon beside of the text in a wxFrame. The image type cannot be a BM_XPM and it is suggested that a wxIcon be used for the image. The image should be 16 by 16.

    See Also: raise_window, show_fullscreen, show_window


    wxFrame
    Table of Contents

    [proc]
    show_fullscreen
    ( atom frame, integer show, integer flags )

    Category: wxFrame

    The wxWidgets documentation warns that this function hasn't been tested on wxMDIParentFrame s, but it seems to work fine under Windows.

    See Also: raise_window, set_icon, show_window


    wxFrame
    Table of Contents

    [proc]
    show_window
    ( atom window, integer show )

    Category: wxFrame

    Sets a frame invisible if show is 0. If show is 1, then it makes the window visible if it is not, otherwise it does nothing.

    See Also: raise_window, set_icon, show_fullscreen